package com.hardy.job;

/**
 * Author: fuxh3@lenovo.com
 * Date: Created in 2017/9/22 0022
 */
public class IntegerTest {
    public static void main(String[] args) {
        Integer l1 = new Integer(10);
        Integer l2 = new Integer(10);
        Integer l3 = new Integer(1222);
        Integer l4 = new Integer(1222);
        Integer l5 = 100;
        Integer l6 = 100;
        Integer l7 = 10000;
        Integer l8 = 10000;
        System.out.println(l1.equals(l2) + "        l1.equals(l2)");
        System.out.println(l3.equals(l4) + "        l3.equals(l4)");
        System.out.println(l1 == l2);
        System.out.println(l3 == l4);
        System.out.println(l5 == l6);
        System.out.println(l7 == l8);
    }


}
